package inventoryServe.service;

import inventoryServe.po.Inventory;
import inventoryServe.po.StoreManage;

import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author admin
 * @since 2021-06-22
 */
public interface StoreManageService {
    Boolean addStoreManage(StoreManage storeManage);
    List<StoreManage> allStoreManage(StoreManage storeManage);
    StoreManage storeManageOfId(Integer id);
    Boolean isCheck(StoreManage storeManage);
    Boolean deleteStoreManage(Integer id);

    // 库存是否存在产品和仓库
    Boolean isInInventory(Inventory inventory);
    // 添加入库
    Boolean addInventory(Inventory inventory);
    // 修改存储 添加
    Boolean editAddInventory(Inventory inventory);
    // 根据 仓库id 产品 id 获取库存量
    int getInventoryNum(Integer storeId,Integer productId);
    // 修改存储 减少
    Boolean editSubInventory(Inventory inventory);
    // storeManageChart 统计表格
    List<StoreManage> storeManageChart(StoreManage storeManage);
}
